<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
        <style type="text/css">
            body {
                padding: 60px;
            }
        </style>
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap/css/bootstrap.min.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap/css/bootstrap-responsive.min.css" />
        <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap/js/jquery-1.8.2.js" />"></script>
        <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap/js/bootstrap.min.js" />"></script>
    </head>
    <body>

        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container-fluid">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </a>
                    <a class="brand" href="#">LINK 后台管理系统</a>
                    <div class="nav-collapse">
                        <ul class="nav">
                            <li class="active"><a href="#">首页</a></li>
                            <li><a href="#about">关于</a></li>
                            <li><a href="#contact">联系</a></li>
                        </ul>
                        <ul class="nav pull-right">
                            <?php if (Yii::app()->user->isGuest): ?>
                                <li class="active"><a href="<?php echo Yii::app()->createUrl('/admin/default/login'); ?>">登入</a></li>
                            <?php else: ?>
                                <li><a href="<?php echo Yii::app()->createUrl('/admin/default/logout'); ?>">退出</a></li>
                            <?php endif; ?>
                        </ul>
                    </div><!--/.nav-collapse -->
                </div>
            </div>
        </div>
        <?php if (!Yii::app()->user->isGuest) : ?>
            <div class="span3">
                <div class="well sidebar-nav">
                    <ul class="nav nav-list">
                        <li class="nav-header">学校管理</li>
                        <li><a href="<?php echo Yii::app()->createUrl('/admin/school/index/1000000'); ?>">查看所有学校</a></li>
                        <li><a href="<?php echo Yii::app()->createUrl('/admin/school/index/1'); ?>">查看待审核学校</a></li>
                        <li><a href="<?php echo Yii::app()->createUrl('/admin/school/index/2'); ?>">查看审核通过学校</a></li>
                        <li><a href="<?php echo Yii::app()->createUrl('/admin/school/create'); ?>">新建一个学校</a></li>
                        <li class="nav-header">专业管理</li>
                        <li><a href="<?php echo Yii::app()->createUrl('/admin/subject/index/1000000'); ?>">查看所有专业</a></li>
                        <li><a href="<?php echo Yii::app()->createUrl('/admin/subject/index/1'); ?>">查看待审核专业</a></li>
                        <li><a href="<?php echo Yii::app()->createUrl('/admin/subject/index/2'); ?>">查看审核通过专业</a></li>
                        <li><a href="<?php echo Yii::app()->createUrl('/admin/subject/create'); ?>">新建一个专业</a></li>
                    </ul>
                </div>
            </div>
        <?php endif; ?>
        <div class="span9">
            <div class="row">
                <?php if (isset($this->breadcrumbs)): ?>
                    <?php
                    $this->widget('zii.widgets.CBreadcrumbs', array(
                        'homeLink' => CHtml::link('首页', Yii::app()->createUrl('/admin/default/manager')),
                        'links' => $this->breadcrumbs,
                    ));
                    ?><!-- breadcrumbs -->
                <?php endif ?>
            </div>
            <hr></hr>
            <div class="row">
                <?php echo $content; ?>
            </div>

        </div>
        <div class="clear"></div>

        </div><!-- page -->

    </body>
</html>
